<template>
    <div class="about">
       <h2>大家好，欢迎来到北京市</h2>
    </div>
</template>
<script setup lang="ts" name="About">
//通过监视函数来观察组件的加载与卸载过程
import { onUnmounted, onMounted } from 'vue';
onMounted(() => {
    console.log("加载about组件");
})
onUnmounted(() => {
    console.log("卸载about组件")
})
</script>
<style scoped>
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: rgb(85,84,84);
    font-size: 18px;
}
</style>  